home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ggggeeeettttaaaabbbbiiii((((1111)))) ggggeeeettttaaaabbbbiiii((((1111))))
-
-
-
- NNNNAAAAMMMMEEEE
- getabi - determine which ABI to use
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ggggeeeettttaaaabbbbiiii [size] <ignore|preserve|remove|add> [<args>]
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _g_e_t_a_b_i is used to determine whether to use the 32-bit ABI (_a_b_i_3_2) or the
- 64-bit ABI (_a_b_i_6_4). It returns the ABI enumeration values as defined in
- /_u_s_r/_i_n_c_l_u_d_e/_g_e_t_a_b_i._h, and writes the new _a_r_g_s list on standard output.
-
- First it checks the _a_r_g_s for "-32" or "-64". If neither of these is
- given, then it checks the _a_r_g_s for a "-mips[1-4]" option. Mips 1 and 2
- imply _a_b_i_3_2 while mips 3 and 4 imply _a_b_i_6_4. If none of the _a_r_g_s options
- specify the abi, then we check the _S_G_I__A_B_I environment variable, which
- can be set to either "-32" or "-64". If _S_G_I__A_B_I is not in the
- environment, then we check what kernel is installed. If we are running
- on a system that has the 64-bit kernel, then we default to _a_b_i_6_4; else we
- default to _a_b_i_3_2.
-
- The optional _s_i_z_e argument says to return the ABI for the generic size
- (_a_b_i_3_2 or _a_b_i_6_4), rather than the specific ABI (_a_b_i_o_3_2 or _a_b_i_6_4).
-
- The _i_g_n_o_r_e argument says to ignore the _a_r_g_s list when determining the
- ABI; the _p_r_e_s_e_r_v_e argument says to preserve the _a_r_g_s list, while the
- _r_e_m_o_v_e and _a_d_d arguments respectively remove and add the ABI value from
- the _a_r_g_s list.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
- A ccccsssshhhh example is as follows:
- set st = `getabi remove -32 -keep t.c`
- # echo abi value
- echo $status
- # echo new args list
- echo $st
-
- A sssshhhh example is as follows:
- args=`getabi size add foo -a t.c`
- # echo abi value
- echo $?
- # echo new args list
- echo $args
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _gggg_eeee_tttt_aaaa_bbbb_iiii(3c)
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- _gggg_eeee_tttt_aaaa_bbbb_iiii prints an error message on the standard error and returns _n_o_a_b_i
- when it encounters an error.
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-